<?php
/**
 * 回答记录联表查询
 */
namespace Home\Model;
use Think\Model\RelationModel;
class AnswerModel extends RelationModel{
    protected $_link=array(
        'qext'=>array(
            'mapping_type'=>self::HAS_ONE,
            'foreign_key'=>'aid',//本表外键
            'class_name'=>'answer_ext',//从表的完整名字
            'mapping_name'=>'aext',
            // 'as_fields' => 'kiss,avatar,sign,vip,qq,wechat'
            )
    );
}